<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        #box {
            width: 800px;
            height: 300px;
            /* background-color: rgb(131, 185, 239); */
            margin: 100px auto;
            position: relative;
        }

        #box>div {
            width: 200px;
            height: 200px;
            border: 5px solid #a8a8a8;
            float: left;
            margin-right: 10px;
            position: relative;
        }

        .im1 {
            width: 200px;
            height: 200px;
        }

        .im2 {
            /* display: block; */
            position: absolute;
            top: 170px;
            left: 20px;
        }

        .im3 {
            /* display: none; */
            position: absolute;
            top: 170px;
            left: 20px;display: none;
        }
        #box>div>div{
            width: 100%;
            height: 100%;
            background-color: rgba(255, 255, 255, 0);
            position: absolute;
            opacity: 0;
            top: 0;
        }
        #box>div:hover>div{
            background-color: rgba(255, 255, 255, 0.5);
            opacity: 1;
        }
        #box>div:hover>.im3{
            display: block;
        }
    </style>
</head>

<body>
    <div id="box">
        <div><img class="im1" src="./img/img01.png">
            <div>优秀的我</div>
            <img src="./img/tu.gif" alt="" class="im2"><img class="im3" src="./img/tu2.gif" alt="">
        </div>
        <div><img class="im1" src="./img/img02.png">
            <div></div><img class="im2" src="./img/tu.gif" alt=""><img class="im3" src="./img/tu2.gif" alt="">
            <div>优秀的我</div>
        </div>
        <div><img class="im1" src="./img/img03.png">
            <div></div><img class="im2" src="./img/tu.gif" alt=""><img class="im3" src="./img/tu2.gif" alt="">
            <div>优秀的我</div>
        </div>
    </div>
</body>

</html>